$(function(){
	
	
	apps.request({
		type: 'GET',
		url: urls.ctx + '/index',
		success: function(res){
				console.log(res);
			if(res && res.code == 0) {
				var router = new Router();
				router.add('home', function() {
					$('#skin-blur-violate').load('home.html');
				}); 
				router.setIndex('home');
				router.start();
			} else {
				alert(res.msg);
			}
		},
		error: function() {
			
		}
	});
	
	
	
	
	

});